﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace JewererBasic.Models
{
    public class producttemp
    {
        [Required(ErrorMessage = "Please enter this field")]
        public string Id { get; set; }
        public string Description { get; set; }
        public int IdKind { get; set; }
        [Required]
        [Range(1, int.MaxValue, ErrorMessage = "Please enter a value bigger than {1}")]
        public double Size { get; set; }
        [Required(ErrorMessage = "Please choose file")]
        public string Drawing { get; set; }
        public int IdUnit { get; set; }
        public int IdType { get; set; }
        [Required(ErrorMessage = "Please enter this field")]
        public double MetalWeight { get; set; }
        [Required(ErrorMessage = "Please enter this field")]
        public double TotalWeight { get; set; }
        public int IdGamma { get; set; }
        public string IdCreater { get; set; }
        public System.DateTime DayMake { get; set; }
        public int IsDeleted { get; set; }
        // new
        public HttpPostedFileBase MyFile { get; set; }
    }
}